package pojo;

import java.sql.Timestamp;

//试卷表
public class Paper {

    private int p_id;//试卷号
    private String p_name;//试卷名
    private Timestamp starttime;//开始时间
    private Timestamp endtime;//结束时间
    private int ifpublish;//是否发布，默认为0
    private  int t_id;//教师编号
    private  int s_id;//学号
    private  String s_name;//姓名

    public Paper(int p_id, String p_name, Timestamp starttime, Timestamp endtime, int ifpublish,int t_id,int s_id,String s_name) {
        this.p_id = p_id;
        this.p_name = p_name;
        this.starttime = starttime;
        this.endtime = endtime;
        this.ifpublish = ifpublish;
        this.t_id=t_id;
        this.s_id=s_id;
        this.s_name=s_name;
    }

    public Paper() {

    }

    public int getP_id() {
        return p_id;
    }

    public void setP_id(int p_id) {
        this.p_id = p_id;
    }

    public String getP_name() {
        return p_name;
    }

    public void setP_name(String p_name) {
        this.p_name = p_name;
    }

    public Timestamp getStarttime() {

        return starttime;
    }

    public void setStarttime(Timestamp time) {
        this.starttime = time;
    }

    public Timestamp getEndtime() {
        return endtime;
    }

    public void setEndtime(Timestamp time) {
        this.endtime = time;
    }

    public int getIfpublish() {
        return ifpublish;
    }

    public void setIfpublish(int ifpublish) {
        this.ifpublish = ifpublish;
    }
    public int getT_id(){
        return  t_id;
    }
    public void setT_id(int t_id){
        this.t_id=t_id;
    }
    public int getS_id(){
        return  s_id;
    }
    public void setS_id(int s_id){
        this.s_id=s_id;
    }
    public String getS_name(){
        return  s_name;
    }
    public void setS_name(String s_name){
        this.s_name=s_name;
    }
}
